package com.genius.reservation.supplier.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.genius.reservation.common.ResponseRule;
import com.genius.reservation.common.rabbitmq.RabbitMessageEntity;
import com.genius.reservation.supplier.entity.SupplierInformation;
import com.genius.reservation.user.entity.UserInformation;

public interface ISupplierService extends IService<SupplierInformation> {

    SupplierInformation createSupplier(UserInformation user);

    void newMessage(RabbitMessageEntity obj);

    ResponseRule getMessage(String receiveManagerNumber);

    ResponseRule getAllMessage(String userNumber);

    default SupplierInformation saAndUp(SupplierInformation supplier){
        this.saveOrUpdate(supplier);
        return supplier;
    }
    ResponseRule getAllDriver(String supplierNumber);

    ResponseRule getSupplier(String supplierNumber);
}
